<?php
$attributes = array('class' => 'form-horizontal', 'role' => 'form', 'id' => 'formid');
echo form_open('login_c/index', $attributes);
?>
    <div class="row">
        <div <? if(!empty($error)) echo ' class="alert-warning alert"'?> >
            <?
            echo validation_errors();
            if(!empty($error)) 
                echo $error
            ?>
        </div>
    </div>
    <div class="form-group">
        <label for="inputEmail1" class="col-lg-5 control-label subtitulo">Usuario</label>
        <div class="col-lg-2">
            <input type="text" name="username" class="form-control " placeholder="Usuario">
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword1" class="col-lg-5 control-label subtitulo">Clave</label>
        <div class="col-lg-2">
            <input type="password" name="password" class="form-control" placeholder="Clave">
        </div>
    </div>
    <div class="form-group">
        <div class="col-lg-offset-5 col-lg-4">
            <button type="submit" name="login" value="login" class="btn btn-success">Acceder</button>
        </div>
    </div>
</div>
<?
echo form_close();
?>